package com.zjitc.chapter07.controller;

import com.zjitc.chapter07.service.UserService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {
    @Resource(name = "userService")
    private UserService userService;
    public void save() {
        userService.save();
        System.out.println("保存用户:UserController.save()");
    }
}
